package com.opennews.openplatform

import grails.boot.GrailsApp
import grails.boot.config.GrailsAutoConfiguration
import groovy.transform.CompileStatic
import grails.plugins.metadata.*

@CompileStatic
class Application extends GrailsAutoConfiguration {
    static void main(String[] args) {
        // IMPORTANT!!!
        // If you need to handle date string from client in UTC format you have to setup Timezone here.
        // Otherwise you lost timezone info.
        // Client side also needs to submit date in UTC format.
        // Example:
        // yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
        TimeZone.setDefault(TimeZone.getTimeZone( "UTC" ))

        GrailsApp.run(Application, args)
    }
}
